package com.renke;

import com.renke.server.BaseThread;
import com.renke.server.JavaBIOServer;
import com.renke.server.JavaNIOServer;
import com.renke.server.NIOThread;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class NetworkBootstrap {

    public static void main(String[] args) {
        new Thread(() -> JavaBIOServer.startBIOServer(8080, new BaseThread())).start();
        new Thread(() -> JavaNIOServer.startNIOServer(8090, new NIOThread())).start();
    }
}
